package com.yuanfeng.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.order.entity.OrderComplaintsEntity;

import java.util.Map;

/**
 * @ClassName OrderComplaintsService
 * @Description  用户投诉表
 * @Author cyp
 * @Date 2023-08-23 09:38:15
 * @Version 1.0
 **/
public interface OrderComplaintsService extends IService<OrderComplaintsEntity> {
    /**
     * 用户新增投诉单
     * @param map
     * @return
     */
    ResponseResult addcomplaints(Map<String, Object> map);

    /**
     * 判断订单是否在发货周期
     * @param map
     * @return
     */
    ResponseResult query(Map<String, Object> map);

    /**
     * 查询订单最后售后时间
     * @param map
     * @return
     */
    ResponseResult isAfterSales(Map<String, Object> map);

    /**
     * 查询订单是否投诉过
     * @param map
     * @return
     */
    ResponseResult isComplaints(Map<String, Object> map);

    /**
     * 查询投诉单列表
     * @param map
     * @return
     */
    ResponseResult queryComplaints(Map<String, Object> map);

    /**
     * 查询投诉单详情
     * @param map
     * @return
     */
    ResponseResult complaintsDetail(Map<String, Object> map);

    /**
     * 撤销投诉单
     * @param map
     * @return
     */
    ResponseResult revokeComplaints(Map<String, Object> map);



    /**
     * 查询投诉列表
     */
    ResponseResult queryComplaintsByPlatform(Map<String,Object> map);


    /**
     * 平台-查询投诉详情
     */
    ResponseResult queryComplaintsDetailByPlatform(Map<String,Object> map);

    /**
     * 平台-处理投诉
     */
    ResponseResult updateComplaint(Map<String,Object> map);

}
